// 导入组件
import Vue from 'vue';
import Router from 'vue-router';

// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
	routes: [{
			path: '/',
			name: '登录',
			component: () => import('@/views/login'),
			hidden: true,
			meta: {
				requireAuth: false
			}
		},
		{
			path: '/index',
			name: '首页',
			component: () => import('@/views/index'),
			iconCls: 'el-icon-tickets',
		 children: [{
					path: '/home/index',
					name: '数据统计',
					component: () => import('@/views/home/index'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/house/type',
					name: '项目户型',
					component: () => import('@/views/house/type'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/house/region',
					name: '区域管理',
					component: () => import('@/views/house/region'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/house/area',
					name: '项目区域',
					component: () => import('@/views/house/area'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/house/descript',
					name: '区域介绍',
					component: () => import('@/views/house/descript'),
					meta: {
						requireAuth: true
					}
		 	},
				{
					path: '/house/produce',
					name: '区域介绍',
					component: () => import('@/views/house/produce'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/house/add_produce',
					name: '添加项目',
					component: () => import('@/views/house/add_produce'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/user/user',
					name: '用户管理',
					component: () => import('@/views/user/user'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/sys/banner',
					name: '广告管理',
					component: () => import('@/views/sys/banner'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/sys/nav',
					name: '导航管理',
					component: () => import('@/views/sys/nav'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/user/adviser',
					name: '顾问',
					component: () => import('@/views/user/adviser'),
					meta: {
						requireAuth: true
					}
		 	},
				{
					path: '/sys/sys',
					name: '系统配置',
					component: () => import('@/views/sys/sys'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/article/index',
					name: '文章管理',
					component: () => import('@/views/article/index'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/article/add',
					name: '添加文章',
					component: () => import('@/views/article/add'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/project/property',
					name: '楼盘管理',
					component: () => import('@/views/project/property'),
					meta: {
						requireAuth: true
					}
		 	},
				{
					path: '/project/type',
					name: '房屋类型',
					component: () => import('@/views/project/type'),
					meta: {
						requireAuth: true
					}
				},
		 	{
					path: '/project/floors',
					name: '楼层管理',
					component: () => import('@/views/project/floors'),
					meta: {
						requireAuth: true
					}
				},
				{
						path: '/project/house',
						name: '房屋管理',
						component: () => import('@/views/project/house'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/project/edit_house',
						name: '编辑房屋',
						component: () => import('@/views/project/edit_house'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/project/actives',
						name: '活动设置',
						component: () => import('@/views/project/actives'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/project/around_environment',
						name: '周边环境',
						component: () => import('@/views/project/around_environment'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/project/appointments',
						name: '用户预约',
						component: () => import('@/views/project/appointments'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/active/turntable_actives',
						name: '大转盘',
						component: () => import('@/views/active/turntable_actives'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/active/chicken_ranks',
						name: '养鸡活动',
						component: () => import('@/views/active/chicken_ranks'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/active/actives',
						name: '活动设置',
						component: () => import('@/views/active/actives'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/sys/sys',
						name: '系统设置',
						component: () => import('@/views/sys/sys'),
						meta: {
							requireAuth: true
						}
				},
				{
					path: '/sys/notice',
					name: '消息管理',
					component: () => import('@/views/sys/notice'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/sys/play_banners',
					name: '直播间广告图',
					component: () => import('@/views/sys/play_banners'),
					meta: {
						requireAuth: true
					}
				},
				{
					path: '/sys/article_cate',
					name: '资讯分类',
					component: () => import('@/views/sys/article_cate'),
					meta: {
						requireAuth: true
					}
				},
				{
						path: '/sys/image_banners',
						name: '图片广告',
						component: () => import('@/views/sys/image_banners'),
						meta: {
							requireAuth: true
						}
				},

				{
					path: '/sys/marketing_form',
					name: '图片广告',
					component: () => import('@/views/sys/marketing_form'),
					meta: {
						requireAuth: true
					}
			},

				{
						path: '/logs/egg_logs',
						name: '养鸡日志',
						component: () => import('@/views/logs/egg_logs'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/logs/turntable_logs',
						name: '抽奖日志',
						component: () => import('@/views/logs/turntable_logs'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/active/article',
						name: '活动文章',
						component: () => import('@/views/active/article'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/logs/tree_logs',
						name: '种树日志',
						component: () => import('@/views/logs/tree_logs'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/writeoff/egg_writeoff',
						name: '鸡蛋核销',
						component: () => import('@/views/writeoff/egg_writeoff'),
						meta: {
							requireAuth: true
						}
				},
				{
						path: '/writeoff/luck_writeoff',
						name: '抽奖核销',
						component: () => import('@/views/writeoff/luck_writeoff'),
						meta: {
							requireAuth: true
						}
				},
        {
        		path: '/writeoff/red_writeoffd',
        		name: '抽奖核销',
        		component: () => import('@/views/writeoff/red_writeoffd'),
        		meta: {
        			requireAuth: true
        		}
        },
        {
        		path: '/active/blind_box',
        		name: '盲盒奖品',
        		component: () => import('@/views/active/blind_box'),
        		meta: {
        			requireAuth: true
        		}
        },
        {
        		path: '/package/package',
        		name: '套餐',
        		component: () => import('@/views/package/package'),
        		meta: {
        			requireAuth: true
        		}
        },
        {
        		path: '/package/order',
        		name: '订单',
        		component: () => import('@/views/package/order'),
        		meta: {
        			requireAuth: true
        		}
        }
			]
		}
	]
})
